{extend name="base" /}

{block name="title"}银豆审核{/block}

{block name="main"}
	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>银豆审核 <small>萌宝联盟</small></h1>
			<ol class="breadcrumb">
				<li><a href="/shuashuale"><i class="fa fa-home"></i> 首页</a></li>
				<li><a href="/shuashuale/wallet/silver"> 财务管理</a></li>
				<li class="active">银豆审核</li>
			</ol>
		</section>

		<!-- Main content -->
		<section class="content container-fluid">
			<div class="box">
				<div class="box-header with-border">
					<h3 class="box-title">银豆审核</h3>
				</div>
				<!-- /.box-header -->
				<div class="box-body table-responsive no-padding">
					<table class="table table-bordered">
						<tr>
							<th>编号</th>
				    		<th>用户</th>
				    		<th>真实姓名</th>
				    		<th>云支付账号</th>
				    		<th>金额</th>
				    		<th>分红</th>
				    		<th>剩余分红</th>
				    		<th>开始日期</th>
				    		<th>结束日期</th>
				    		<th>状态</th>
							<th>操作</th>
						</tr>
						{volist name='userWalletSilvers' id='userWalletSilver'}
						<tr>
							<td>{$userWalletSilver.user_wallet_silver_id}</td>
							<td>{$userWalletSilver.username}</td>
							<td>{$userWalletSilver.realname}</td>
							<td>{$userWalletSilver.bank_code}</td>
				    		<td>{$userWalletSilver.price}</td>
				    		<td>{$userWalletSilver.interest}</td>
				    		<td>{$userWalletSilver.remaining_interest}</td>
				    		<td>{$userWalletSilver.start_time|date='Y-m-d H:i',###}</td>
				    		<td>{$userWalletSilver.end_time|date='Y-m-d H:i',###}</td>
				    		<td>{$userWalletSilver.status}</td>
							<td>
								{switch name="userWalletSilver->getData('status')" }
								    {case value="2"}
								    	<a class="btn btn-warning btn-xs btn-flat" href="/shuashuale/wallet/silver/checkWithdraw?user_wallet_silver_id={$userWalletSilver.user_wallet_silver_id}" onClick="return confirm('是否已经打款？')">提现审核</a>
								    {/case}
								{/switch}
								<a class="btn btn-danger btn-xs btn-flat" href="/shuashuale/wallet/silver/delete?user_wallet_silver_id={$userWalletSilver.user_wallet_silver_id}" onClick="return confirm('确认删除？')">删除</a>
							</td>
						</tr>
						{/volist}
					</table>
				</div>
				<!-- /.box-body -->
				<div class="box-footer clearfix">
					{$userWalletSilvers -> render()}
				</div>
			</div>
		</section>
		<!-- /.content -->
	</div>
	<!-- /.content-wrapper -->
{/block}